Skip to content

chore: migrate to Policyfile - #364

Merged
damacus merged 2 commits into
mainfrom
chore/migrate-to-policyfile
Jul 2, 2026
Merged

chore: migrate to Policyfile#364
damacus merged 2 commits into
mainfrom
chore/migrate-to-policyfile

Conversation

@damacus

@damacus damacus commented Jul 2, 2026

Copy link
Copy Markdown
Member

Summary

  • replace Berksfile with Policyfile.rb
  • switch ChefSpec to Policyfile support
  • update Copilot setup to run chef install Policyfile.rb

Verification

  • chef install Policyfile.rb
  • cookstyle --no-server --cache-root /private/tmp/rubocop_cache
  • /opt/homebrew/bin/markdownlint-cli2 "**/*.md"
  • env GEM_PATH=/opt/chef-workstation/embedded/lib/ruby/gems/3.1.0 /opt/chef-workstation/embedded/bin/rspec
  • git diff --check
  • kitchen list
  • KITCHEN_LOCAL_YAML=kitchen.dokken.yml kitchen list

This change is Reviewable

@damacus
damacus requested a review from a team as a code owner July 2, 2026 01:34
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Slowest examples

Top 10 slowest examples (0.95 seconds, 30.22% of total time)
Example Description Time in seconds
spec/unit/resources/user_install_spec.rb:20 rbenv_user_install with default properties is expected to create directory "/home/vagrant/.rbenv/versions" 0.16397
spec/unit/resources/gem_spec.rb:53 rbenv_gem action :upgrade is expected to upgrade gem_package "bundler" 0.1241
spec/unit/resources/system_install_spec.rb:20 rbenv_system_install with default properties (update_rbenv defaults to true) is expected to nothing bash "Initialize system rbenv" 0.11617
spec/unit/resources/system_install_spec.rb:30 rbenv_system_install with custom global_prefix is expected to sync git "/opt/rbenv" 0.09701
spec/unit/resources/gem_spec.rb:17 rbenv_gem action :install with default properties is expected to install gem_package "bundler" 0.09437
spec/unit/resources/ruby_spec.rb:28 rbenv_ruby with verbose output is expected to run rbenv_script "rbenv install 3.4.9 --verbose (system)" 0.07486
spec/unit/resources/system_install_spec.rb:18 rbenv_system_install with default properties (update_rbenv defaults to true) is expected to create directory "/usr/local/rbenv/plugins" 0.07331
spec/unit/resources/gem_spec.rb:29 rbenv_gem action :install with version is expected to install gem_package "mail" 0.07247
spec/unit/resources/user_install_spec.rb:20 rbenv_user_install with default properties is expected to create directory "/home/vagrant/.rbenv/shims" 0.06926
spec/unit/resources/user_install_spec.rb:38 rbenv_user_install with custom group is expected to create directory "/home/vagrant/.rbenv/shims" 0.06923

@damacus
damacus merged commit 7c77fdf into main Jul 2, 2026
86 checks passed
@damacus
damacus deleted the chore/migrate-to-policyfile branch July 2, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant